<h1>邮寄信息</h1>

<table>
  <tr>
    <th>邮寄地址</th>
    <th>收件人</th>
    <th>邮编</th>
  </tr>

<% for post_info in @post_infos %>
  <tr>
    <td><%=h post_info.post_address %></td>
    <td><%=h post_info.addressee %></td>
    <td><%=h post_info.postalcode %></td>
    <td><!--%= link_to 'Show', post_info %--></td>
    <td><%=link_to'设为默认',{:action=>:set_to_default,:id=>post_info.id}%></td>
    <td><%= link_to '编辑', :action=>:edit,:id=>post_info.id %></td>
    <td><%= link_to '删除', {:action=>:destroy,:id=>post_info.id},:method=>:post,:confirm=>"你确定要删除吗？"%></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '提交新邮寄地址', :action=>:new %>
